package com.lovo.csc.service.impl;

import com.lovo.csc.entity.Purchase;
import com.lovo.csc.mapper.PurchaseMapper;
import com.lovo.csc.service.IPurchaseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lovo
 * @since 2022-07-12
 */
@Service
public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase> implements IPurchaseService {
@Autowired
 private PurchaseMapper mapper;

    @Override
    public List<Purchase> findByName(String name) {
        List<Purchase> purchases=mapper.findByName(name);
        return purchases;
    }
}
